<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2018/11/13
  Time: 11:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="../bootstrap/js/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
    <title>修改商品</title>
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-4 column">
        </div>
        <div class="col-md-4 column">
            <form role="form" action="${root}/alterServlet" method="post">
                <input type="hidden" value="${second.csid}" name="csid">
                <div class="form-group">
                    <label for="pname">商品名称</label><input type="text" class="form-control" id="pname" name="pname" value="${p.pname}"/>
                </div>
                <div class="form-group">
                    <label for="pshopprice">市场价格</label><input type="text" class="form-control" id="pshopprice" name="shop_price" value="${p["shop_price"]}"/>
                </div>
                <div class="form-group">
                    <label for="pishot">商品热销</label>
                    <select id="pishot" name="is_hot">
                        <c:choose>
                            <c:when test="${p['is_hot']==0}">
                                <option value="0" selected>否</option>
                                <option value="1">是</option>
                            </c:when>
                            <c:otherwise>
                                <option value="0">否</option>
                                <option value="1" selected>是</option>
                            </c:otherwise>
                        </c:choose>
                    </select>
                </div>
                <button type="submit" class="btn btn-default">提交</button>
                <a href="${root}/findPage">
                    <button type="button" class="btn btn-default btn-primary" id="back">返回</button>
                </a>
            </form>
        </div>
        <div class="col-md-4 column">
        </div>
    </div>
</div>
</body>
</html>
